package com.apex.product.service.impl;


import com.apex.model.bean.Product;
import com.apex.product.service.IProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @ClassName ProductServiceImpl
 * @Description
 * @Author ZJX
 * @Date 2025/3/5 15:16
 * @Version 1.0
 **/
@Service
public class ProductServiceImpl implements IProductService {

    @Override
    public Product getProduct(Long productId) {
        Product product = new Product();
        product.setId(productId);
        product.setPrice(new BigDecimal("99"));
        product.setProductName("苹果-"+productId);
        product.setNum(2);

        return product;
    }
}
